import request from '@/utils/request'

// 查询CommunityPosting列表
export function listCommunityPosting(query) {
return request({
url: '/api/v1/community/postingList',
method: 'get',
params: query
})
}

// 查询CommunityPosting详细
export function getCommunityPosting (communityId) {
return request({
url: '/api/v1/community/posting/' + communityId,
method: 'get'
})
}


// 新增CommunityPosting
export function addCommunityPosting(data) {
return request({
url: '/api/v1/community/posting',
method: 'post',
data: data
})
}

// 修改CommunityPosting
export function updateCommunityPosting(data) {
return request({
url: '/api/v1/community/posting',
method: 'put',
data: data
})
}

// 删除CommunityPosting
export function delCommunityPosting(communityId) {
return request({
url: '/api/v1/community/posting/' + communityId,
method: 'delete'
})
}